export function TodoList(props){
    console.log('=====',props)
    const {list}=props
    return(
        <div>
            <ul>{list.map(item=>{
                return <li key={item.id}>{item.task}</li>
            })}</ul>
        </div>
    )
 }

 export default TodoList